<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColBusinessSituationTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('demand_butt', function(Blueprint $table)
        {
            $table->string('business_situation')->nullable()->comment('业务情况')->after('demand_id');
        });

        Schema::create('demand_butt_case_img',function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('demand_butt_id')->default(0)->comment('需求对接id');
            $table->integer('img_id')->default(0)->comment('图片id');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
